package com.aiwei.tdjk.controller;

import com.aiwei.tdjk.dto.request.SaleOrderItemPagerRequest;
import com.aiwei.tdjk.service.SaleOrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/admin/saleOrderItem")
public class SaleOrderItemController extends BaseController {

	@Autowired
	private SaleOrderItemService saleOrderItemService;


	@RequestMapping(value = {"/list"}, method = RequestMethod.GET)
	public String list(SaleOrderItemPagerRequest request, Model model) {
		model.addAttribute("page", saleOrderItemService.find(request));
		model.addAttribute("saleOrderItem", request);
		return viewName("list");
	}




}
